package com.ykht.proj.coupon.vo;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.text.DateFormat;
import java.time.LocalDateTime;

@Data
public class MoneyFlowVo extends BaseSearchTimeVo{
	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
		this.createTime4String = DateUtil.format(createTime, DatePattern.NORM_DATETIME_PATTERN);
	}

	private LocalDateTime createTime;
	private String createTime4String;
	private String orderId;
	private String tradeId;
	private String name;

	public void setMerchantType(Integer merchantType) {
		this.merchantType = merchantType;
		switch (merchantType){
			case 1:
				break;
			case 2:
				merchantType4String = "品牌";
				break;
			case 3:
				merchantType4String = "门店";
				break;
		}
	}

	private Integer merchantType;
	private String merchantType4String;
	private Long merchantId;
	private BigDecimal flowMoney;
	private BigDecimal balanceMoney;

	public void setWay(Integer way) {
		this.way = way;
		switch (way){
			case 0:
				break;
			case 1:
				break;
			case 2:
				merchantType4String = "品牌";
				break;
			case 3:
				merchantType4String = "门店";
				break;
		}
	}

	private Integer way;
	private String way4String;
	private Long createUser;
	private String createUserName;
	@ApiModelProperty("商户列表的id")
	private Long id;

}
